import Api from '../../../api/drugStore/index'

export default {
  clearZero (store, data) {
    setTimeout(() => {
      store.commit('priceZero', data)
    }, data * 1000)
  },
  getProducts (store, page) {
    if (!page) page = {}
    Api.getProducts(page, function (resp) {
      store.commit('setProducts', resp)
    })
  }
}
